package com.siqi.hr.system.common.model.filter;

import com.siqi.hr.system.common.sql.Condition;
import com.siqi.hr.system.custom.filter.BaseFilter;
import com.siqi.hr.system.organization.entity.Dept;
import com.siqi.hr.system.organization.entity.Employee;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

/**
 * 查询条件实体
 */
public class QueryDataEntity extends BaseFilter implements Serializable {
    //表名
    private String tableName = "";
    //表id
    private Integer tableCode;
    //表头字段
    private String [] fields;
    //是查询列表数据还是查询弹窗列表数据标示(true:查询弹窗列表数据，false：查询列表数据)
    private Boolean isTable;
    //查询条件结果
    private Set<Condition> mutilSearch = new HashSet<Condition>();
    //员工实体
    private Employee employee;
    //部门实体
    private Dept dept;
    //实体记录id过滤条件
    private String searchIds;
    //实体记录是否已经停用(true:是,false:否)
    private boolean flag;
    //实体记录是否是有效记录(true:是,false:否)
    private boolean validFlag = true;
    //获取部门等级编码用于查询本级及下级部门数据(xiaogq)
    private String deptScope;

    public Integer getTableCode() {
        return tableCode;
    }

    public void setTableCode(Integer tableCode) {
        this.tableCode = tableCode;
    }

    public Set<Condition> getMutilSearch() {
        return mutilSearch;

    }

    public void setMutilSearch(Set<Condition> mutilSearch) {
        this.mutilSearch = mutilSearch;
    }

    public Employee getEmployee() {
        return employee;
    }

    public void setEmployee(Employee employee) {
        this.employee = employee;
    }

    public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    public String[] getFields() {
        return fields;
    }

    public void setFields(String [] fields) {
        this.fields = fields;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public Boolean getTable() {
        return isTable;
    }

    public void setTable(Boolean table) {
        isTable = table;
    }

    public String getSearchIds() {
        return searchIds;
    }

    public void setSearchIds(String searchIds) {
        this.searchIds = searchIds;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public boolean isValidFlag() {
        return validFlag;
    }

    public void setValidFlag(boolean validFlag) {
        this.validFlag = validFlag;
    }

    public String getDeptScope() {
        return deptScope;
    }

    public void setDeptScope(String deptScope) {
        this.deptScope = deptScope;
    }
}
